package yxk.operation;

import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.plugin.args.BeforeOperationArgs;
import kd.hr.hbp.opplugin.web.HRDataBaseOp;

/**
 * 页面标识：
 * @since 2023-10-08 15:41
 */
public class QTImportSaveOP extends HRDataBaseOp {

    @Override
    public void beforeExecuteOperationTransaction(BeforeOperationArgs args) {
        super.beforeExecuteOperationTransaction(args);
        boolean fromImport = getOption().containsVariable("importtype");
        if(fromImport) {
            for (DynamicObject dataEntity : args.getDataEntities()) {
                dataEntity.set("org", dataEntity.get("attfileid.org"));
            }
        }
    }
}